import Vue from 'vue'
import Router from 'vue-router'
// import Home from './views/Home.vue'
import Login from './views/login/index.vue'
import Mentor from './views/mentor/index.vue'
// import ForgetPassword from './views/forgetPassword/index.vue'
// import Registered from './views/registered/index.vue'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'home',
        component: () =>
        import ( /* webpackChunkName: "about" */ './views/index/index.vue'),
        redirect: '/index',
        meta: {
            // requireAuth: true
        },
        children: [{
            path: 'index',
            name: 'index',
            component: () =>
                import ( /* webpackChunkName: "about" */ './views/index/index.vue'),
            meta: {
                title: '全能猫-首页',
                requireAuth: true
            }
        }]
    }, {
        path: '/login',
        name: 'Login',
        meta: {
            title: '欢迎登录'
        },
        component: Login
    }, {
        path: '/mentor',
        name: 'mentor',
        meta: {
            title: '师徒'
        },
        component: Mentor
    }]
})
